import request from "@/utils/request";
import type { Category } from "@/types/cate";
import type { ResponseType } from "@/types/response";

enum Enum {
    category = "/category"
}

/*获取分类的接口*/
export const fetchCategoryAPI = (id: string):Promise<ResponseType<Category>> => request.get<Category,ResponseType<Category>>(Enum.category, { params: { id } });
